package io;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintWriter;

public class PWDemo {
    public static void main(String[] args) throws FileNotFoundException {

        // 使用字符输出缓冲流
        PrintWriter pw = new PrintWriter("./src/main/java/io/pw.txt");

        pw.println("我无法只是普通朋友");
        pw.println("感情已那么深");
        pw.println("叫我怎么能放手");

        System.out.println("写入完毕");
        pw.flush();
        pw.close();
    }
}
